package com.sfh.appversion.dto.resp;

import com.sfh.appversion.dao.entity.AppInfoDO;
import lombok.Data;

@Data
public class AppMenuRespDTO {

    /***应用ID*/
    private String appId;

    /***   应用图标 */
    private String appIcon;

    /***   应用名称 */
    private String appName;

    /***   应用类型 */
    private String appType;

    public static AppMenuRespDTO create(AppInfoDO appInfoDO) {
        AppMenuRespDTO appMenuDTO = new AppMenuRespDTO();
        appMenuDTO.appIcon = appInfoDO.getAppIcon();
        appMenuDTO.appId = appInfoDO.getAppId();
        appMenuDTO.appName = appInfoDO.getAppName();
        appMenuDTO.appType = appInfoDO.getAppType();
        return appMenuDTO;
    }
}
